/**
 * Copyright (C) 2009 Ignasi Fosch Alonso
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 
 * details.
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * You can reach me by mail at natx@y10k.ws
 * You can reach him by paper mail at:
 * C. LLEIDA, 41-43, 3r 1a
 * El Prat de Llobregat 08820
 * Barcelona, SPAIN
 */
package ws.y10k.goloim.model;

/**
 * @author  natx
 */
public class OrderLine {
	
	/**
	 * @uml.property  name="product"
	 * @uml.associationEnd  
	 */
	private Product product;
	/**
	 * @uml.property  name="qty"
	 */
	private int qty;
	/**
	 * @uml.property  name="parent"
	 * @uml.associationEnd  
	 */
	private Order parent;

	/**
	 * @return  the product
	 * @uml.property  name="product"
	 */
	public Product getProduct() {
		return product;
	}

	/**
	 * @param product  the product to set
	 * @uml.property  name="product"
	 */
	public void setProduct(Product product) {
		this.product = product;
	}

	/**
	 * @return  the qty
	 * @uml.property  name="qty"
	 */
	public int getQty() {
		return qty;
	}

	/**
	 * @param qty  the qty to set
	 * @uml.property  name="qty"
	 */
	public void setQty(int qty) {
		this.qty = qty;
	}

	/**
	 * @param parent the parent to set
	 */
	public void setParent(Order parent) {
		this.parent = parent;
	}

	/**
	 * @return the parent
	 */
	public Order getParent() {
		return parent;
	}

	public OrderLine(Product product, int qty) {
		this.product = product;
		this.qty = qty;
	}

}
